package com.gblw.rjkf.pj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gblw.rjkf.pj.entity.SysPermissions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (SysPermissions)表数据库访问层
 *
 * @author makejava
 * @since 2024-09-20 19:47:08
 */
@Mapper
public interface SysPermissionsMapper extends BaseMapper<SysPermissions> {
        @Select("SELECT * FROM sys_permissions WHERE parent_id IS NULL")
        List<SysPermissions> getTopLevelMenus();

        @Select("SELECT * FROM sys_permissions")
        List<SysPermissions> getAllMenus();
        }

